import 'package:flutter_kline/common/kline_config.dart';
import 'package:flutter_kline/painter/gradient_chart_painter.dart';
import 'package:flutter_kline/utils/kline_date_util.dart';
import 'package:flutter_kline/utils/kline_random_util.dart';
import 'package:flutter_kline/vo/line_chart_vo.dart';

import '../vo/base_chart_vo.dart';

/// 分时示例数据
class ExampleMinuteData {
  static final List<List<double>> _lineData = [
    [20230906, 0, 0, 0, 0, 11.34, 19688, 0, 930],
    [20230906, 11.34, 0, 0, 0, 11.36, 5193, 0, 931],
    [20230906, 11.36, 0, 0, 0, 11.36, 5042, 0, 932],
    [20230906, 11.36, 0, 0, 0, 11.35, 2928, 0, 933],
    [20230906, 11.35, 0, 0, 0, 11.35, 3122, 0, 934],
    [20230906, 11.35, 0, 0, 0, 11.36, 4146, 0, 935],
    [20230906, 11.36, 0, 0, 0, 11.36, 10068, 0, 936],
    [20230906, 11.36, 0, 0, 0, 11.36, 3216, 0, 937],
    [20230906, 11.36, 0, 0, 0, 11.36, 1960, 0, 938],
    [20230906, 11.36, 0, 0, 0, 11.35, 3547, 0, 939],
    [20230906, 11.35, 0, 0, 0, 11.36, 2117, 0, 940],
    [20230906, 11.36, 0, 0, 0, 11.36, 2260, 0, 941],
    [20230906, 11.36, 0, 0, 0, 11.34, 9382, 0, 942],
    [20230906, 11.34, 0, 0, 0, 11.35, 2442, 0, 943],
    [20230906, 11.35, 0, 0, 0, 11.34, 2076, 0, 944],
    [20230906, 11.34, 0, 0, 0, 11.34, 3464, 0, 945],
    [20230906, 11.34, 0, 0, 0, 11.36, 4146, 0, 946],
    [20230906, 11.36, 0, 0, 0, 11.37, 2546, 0, 947],
    [20230906, 11.37, 0, 0, 0, 11.37, 1671, 0, 948],
    [20230906, 11.37, 0, 0, 0, 11.35, 7749, 0, 949],
    [20230906, 11.35, 0, 0, 0, 11.35, 5672, 0, 950],
    [20230906, 11.35, 0, 0, 0, 11.34, 2452, 0, 951],
    [20230906, 11.34, 0, 0, 0, 11.34, 2126, 0, 952],
    [20230906, 11.34, 0, 0, 0, 11.35, 3392, 0, 953],
    [20230906, 11.35, 0, 0, 0, 11.35, 3596, 0, 954],
    [20230906, 11.35, 0, 0, 0, 11.33, 1442, 0, 955],
    [20230906, 11.33, 0, 0, 0, 11.33, 3850, 0, 956],
    [20230906, 11.33, 0, 0, 0, 11.34, 1859, 0, 957],
    [20230906, 11.34, 0, 0, 0, 11.34, 1160, 0, 958],
    [20230906, 11.34, 0, 0, 0, 11.34, 3637, 0, 959],
    [20230906, 11.34, 0, 0, 0, 11.33, 4248, 0, 1000],
    [20230906, 11.33, 0, 0, 0, 11.34, 905, 0, 1001],
    [20230906, 11.34, 0, 0, 0, 11.34, 2340, 0, 1002],
    [20230906, 11.34, 0, 0, 0, 11.33, 2218, 0, 1003],
    [20230906, 11.33, 0, 0, 0, 11.34, 909, 0, 1004],
    [20230906, 11.34, 0, 0, 0, 11.31, 15044, 0, 1005],
    [20230906, 11.31, 0, 0, 0, 11.3, 16609, 0, 1006],
    [20230906, 11.3, 0, 0, 0, 11.33, 12277, 0, 1007],
    [20230906, 11.33, 0, 0, 0, 11.31, 2546, 0, 1008],
    [20230906, 11.31, 0, 0, 0, 11.32, 585, 0, 1009],
    [20230906, 11.32, 0, 0, 0, 11.32, 4967, 0, 1010],
    [20230906, 11.32, 0, 0, 0, 11.33, 816, 0, 1011],
    [20230906, 11.33, 0, 0, 0, 11.31, 3263, 0, 1012],
    [20230906, 11.31, 0, 0, 0, 11.32, 3312, 0, 1013],
    [20230906, 11.32, 0, 0, 0, 11.32, 671, 0, 1014],
    [20230906, 11.32, 0, 0, 0, 11.32, 1909, 0, 1015],
    [20230906, 11.32, 0, 0, 0, 11.31, 6635, 0, 1016],
    [20230906, 11.31, 0, 0, 0, 11.32, 1136, 0, 1017],
    [20230906, 11.32, 0, 0, 0, 11.32, 1838, 0, 1018],
    [20230906, 11.32, 0, 0, 0, 11.33, 2122, 0, 1019],
    [20230906, 11.33, 0, 0, 0, 11.32, 933, 0, 1020],
    [20230906, 11.32, 0, 0, 0, 11.33, 1851, 0, 1021],
    [20230906, 11.33, 0, 0, 0, 11.32, 680, 0, 1022],
    [20230906, 11.32, 0, 0, 0, 11.34, 2234, 0, 1023],
    [20230906, 11.34, 0, 0, 0, 11.34, 2161, 0, 1024],
    [20230906, 11.34, 0, 0, 0, 11.33, 1003, 0, 1025],
    [20230906, 11.33, 0, 0, 0, 11.34, 718, 0, 1026],
    [20230906, 11.34, 0, 0, 0, 11.34, 1602, 0, 1027],
    [20230906, 11.34, 0, 0, 0, 11.33, 1171, 0, 1028],
    [20230906, 11.33, 0, 0, 0, 11.33, 2629, 0, 1029],
    [20230906, 11.33, 0, 0, 0, 11.33, 1920, 0, 1030],
    [20230906, 11.33, 0, 0, 0, 11.33, 1506, 0, 1031],
    [20230906, 11.33, 0, 0, 0, 11.33, 859, 0, 1032],
    [20230906, 11.33, 0, 0, 0, 11.33, 286, 0, 1033],
    [20230906, 11.33, 0, 0, 0, 11.32, 999, 0, 1034],
    [20230906, 11.32, 0, 0, 0, 11.33, 1491, 0, 1035],
    [20230906, 11.33, 0, 0, 0, 11.33, 1056, 0, 1036],
    [20230906, 11.33, 0, 0, 0, 11.33, 2614, 0, 1037],
    [20230906, 11.33, 0, 0, 0, 11.32, 558, 0, 1038],
    [20230906, 11.32, 0, 0, 0, 11.33, 591, 0, 1039],
    [20230906, 11.33, 0, 0, 0, 11.33, 2270, 0, 1040],
    [20230906, 11.33, 0, 0, 0, 11.33, 3269, 0, 1041],
    [20230906, 11.33, 0, 0, 0, 11.34, 736, 0, 1042],
    [20230906, 11.34, 0, 0, 0, 11.33, 1070, 0, 1043],
    [20230906, 11.33, 0, 0, 0, 11.32, 1267, 0, 1044],
    [20230906, 11.32, 0, 0, 0, 11.34, 669, 0, 1045],
    [20230906, 11.34, 0, 0, 0, 11.34, 436, 0, 1046],
    [20230906, 11.34, 0, 0, 0, 11.34, 2639, 0, 1047],
    [20230906, 11.34, 0, 0, 0, 11.34, 1679, 0, 1048],
    [20230906, 11.34, 0, 0, 0, 11.33, 424, 0, 1049],
    [20230906, 11.33, 0, 0, 0, 11.33, 4684, 0, 1050],
    [20230906, 11.33, 0, 0, 0, 11.33, 400, 0, 1051],
    [20230906, 11.33, 0, 0, 0, 11.33, 480, 0, 1052],
    [20230906, 11.33, 0, 0, 0, 11.33, 434, 0, 1053],
    [20230906, 11.33, 0, 0, 0, 11.33, 834, 0, 1054],
    [20230906, 11.33, 0, 0, 0, 11.33, 404, 0, 1055],
    [20230906, 11.33, 0, 0, 0, 11.32, 689, 0, 1056],
    [20230906, 11.32, 0, 0, 0, 11.33, 706, 0, 1057],
    [20230906, 11.33, 0, 0, 0, 11.32, 794, 0, 1058],
    [20230906, 11.32, 0, 0, 0, 11.33, 1334, 0, 1059],
    [20230906, 11.33, 0, 0, 0, 11.32, 602, 0, 1100],
    [20230906, 11.32, 0, 0, 0, 11.33, 1386, 0, 1101],
    [20230906, 11.33, 0, 0, 0, 11.32, 6959, 0, 1102],
    [20230906, 11.32, 0, 0, 0, 11.32, 1638, 0, 1103],
    [20230906, 11.32, 0, 0, 0, 11.31, 927, 0, 1104],
    [20230906, 11.31, 0, 0, 0, 11.32, 752, 0, 1105],
    [20230906, 11.32, 0, 0, 0, 11.32, 818, 0, 1106],
    [20230906, 11.32, 0, 0, 0, 11.31, 1130, 0, 1107],
    [20230906, 11.31, 0, 0, 0, 11.31, 11372, 0, 1108],
    [20230906, 11.31, 0, 0, 0, 11.31, 3743, 0, 1109],
    [20230906, 11.31, 0, 0, 0, 11.31, 2221, 0, 1110],
    [20230906, 11.31, 0, 0, 0, 11.3, 1548, 0, 1111],
    [20230906, 11.3, 0, 0, 0, 11.3, 3139, 0, 1112],
    [20230906, 11.3, 0, 0, 0, 11.3, 1546, 0, 1113],
    [20230906, 11.3, 0, 0, 0, 11.31, 1480, 0, 1114],
    [20230906, 11.31, 0, 0, 0, 11.31, 218, 0, 1115],
    [20230906, 11.31, 0, 0, 0, 11.32, 752, 0, 1116],
    [20230906, 11.32, 0, 0, 0, 11.31, 529, 0, 1117],
    [20230906, 11.31, 0, 0, 0, 11.31, 2784, 0, 1118],
    [20230906, 11.31, 0, 0, 0, 11.31, 576, 0, 1119],
    [20230906, 11.31, 0, 0, 0, 11.32, 1141, 0, 1120],
    [20230906, 11.32, 0, 0, 0, 11.32, 734, 0, 1121],
    [20230906, 11.32, 0, 0, 0, 11.32, 698, 0, 1122],
    [20230906, 11.32, 0, 0, 0, 11.31, 842, 0, 1123],
    [20230906, 11.31, 0, 0, 0, 11.31, 1022, 0, 1124],
    [20230906, 11.31, 0, 0, 0, 11.33, 3877, 0, 1125],
    [20230906, 11.33, 0, 0, 0, 11.33, 821, 0, 1126],
    [20230906, 11.33, 0, 0, 0, 11.32, 1009, 0, 1127],
    [20230906, 11.32, 0, 0, 0, 11.32, 1408, 0, 1128],
    [20230906, 11.32, 0, 0, 0, 11.33, 1443, 0, 1129],
    [20230906, 11.33, 0, 0, 0, 11.34, 6001, 0, 1300],
    [20230906, 11.34, 0, 0, 0, 11.35, 1679, 0, 1301],
    [20230906, 11.35, 0, 0, 0, 11.36, 2073, 0, 1302],
    [20230906, 11.36, 0, 0, 0, 11.37, 6406, 0, 1303],
    [20230906, 11.37, 0, 0, 0, 11.36, 1686, 0, 1304],
    [20230906, 11.36, 0, 0, 0, 11.35, 1420, 0, 1305],
    [20230906, 11.35, 0, 0, 0, 11.35, 506, 0, 1306],
    [20230906, 11.35, 0, 0, 0, 11.35, 429, 0, 1307],
    [20230906, 11.35, 0, 0, 0, 11.35, 1459, 0, 1308],
    [20230906, 11.35, 0, 0, 0, 11.34, 1665, 0, 1309],
    [20230906, 11.34, 0, 0, 0, 11.36, 2804, 0, 1310],
    [20230906, 11.36, 0, 0, 0, 11.35, 908, 0, 1311],
    [20230906, 11.35, 0, 0, 0, 11.34, 146, 0, 1312],
    [20230906, 11.34, 0, 0, 0, 11.35, 1428, 0, 1313],
    [20230906, 11.35, 0, 0, 0, 11.35, 1070, 0, 1314],
    [20230906, 11.35, 0, 0, 0, 11.36, 942, 0, 1315],
    [20230906, 11.36, 0, 0, 0, 11.35, 1038, 0, 1316],
    [20230906, 11.35, 0, 0, 0, 11.35, 683, 0, 1317],
    [20230906, 11.35, 0, 0, 0, 11.35, 1132, 0, 1318],
    [20230906, 11.35, 0, 0, 0, 11.36, 2261, 0, 1319],
    [20230906, 11.36, 0, 0, 0, 11.36, 612, 0, 1320],
    [20230906, 11.36, 0, 0, 0, 11.36, 2116, 0, 1321],
    [20230906, 11.36, 0, 0, 0, 11.35, 622, 0, 1322],
    [20230906, 11.35, 0, 0, 0, 11.35, 4308, 0, 1323],
    [20230906, 11.35, 0, 0, 0, 11.36, 1568, 0, 1324],
    [20230906, 11.36, 0, 0, 0, 11.36, 1082, 0, 1325],
    [20230906, 11.36, 0, 0, 0, 11.36, 1081, 0, 1326],
    [20230906, 11.36, 0, 0, 0, 11.38, 2639, 0, 1327],
    [20230906, 11.38, 0, 0, 0, 11.37, 1241, 0, 1328],
    [20230906, 11.37, 0, 0, 0, 11.38, 2061, 0, 1329],
    [20230906, 11.38, 0, 0, 0, 11.37, 2087, 0, 1330],
    [20230906, 11.37, 0, 0, 0, 11.37, 2503, 0, 1331],
    [20230906, 11.37, 0, 0, 0, 11.38, 1588, 0, 1332],
    [20230906, 11.38, 0, 0, 0, 11.4, 6890, 0, 1333],
    [20230906, 11.4, 0, 0, 0, 11.41, 3194, 0, 1334],
    [20230906, 11.41, 0, 0, 0, 11.41, 3170, 0, 1335],
    [20230906, 11.41, 0, 0, 0, 11.42, 6873, 0, 1336],
    [20230906, 11.42, 0, 0, 0, 11.42, 10514, 0, 1337],
    [20230906, 11.42, 0, 0, 0, 11.41, 1920, 0, 1338],
    [20230906, 11.41, 0, 0, 0, 11.43, 3911, 0, 1339],
    [20230906, 11.43, 0, 0, 0, 11.42, 2990, 0, 1340],
    [20230906, 11.42, 0, 0, 0, 11.43, 3000, 0, 1341],
    [20230906, 11.43, 0, 0, 0, 11.42, 2097, 0, 1342],
    [20230906, 11.42, 0, 0, 0, 11.42, 762, 0, 1343]
  ];

  static final List<List<double>> _lineData2 = [
    [20230906, 0, 0, 0, 0, 11.34, 19688, 0, 930],
    [20230906, 11.34, 0, 0, 0, 11.36, 5193, 0, 931],
    [20230906, 11.36, 0, 0, 0, 11.36, 5042, 0, 932],
    [20230906, 11.36, 0, 0, 0, 11.35, 2928, 0, 933],
    [20230906, 11.35, 0, 0, 0, 11.35, 3122, 0, 934],
    [20230906, 11.35, 0, 0, 0, 11.36, 4146, 0, 935],
    [20230906, 11.36, 0, 0, 0, 11.36, 10068, 0, 936],
    [20230906, 11.36, 0, 0, 0, 11.36, 3216, 0, 937],
    [20230906, 11.36, 0, 0, 0, 11.36, 1960, 0, 938],
    [20230906, 11.36, 0, 0, 0, 11.35, 3547, 0, 939],
    [20230906, 11.35, 0, 0, 0, 11.36, 2117, 0, 940],
    [20230906, 11.36, 0, 0, 0, 11.36, 2260, 0, 941],
    [20230906, 11.36, 0, 0, 0, 11.34, 9382, 0, 942],
    [20230906, 11.34, 0, 0, 0, 11.35, 2442, 0, 943],
    [20230906, 11.35, 0, 0, 0, 11.34, 2076, 0, 944],
    [20230906, 11.34, 0, 0, 0, 11.34, 3464, 0, 945],
    [20230906, 11.34, 0, 0, 0, 11.36, 4146, 0, 946],
    [20230906, 11.36, 0, 0, 0, 11.37, 2546, 0, 947],
    [20230906, 11.37, 0, 0, 0, 11.37, 1671, 0, 948],
    [20230906, 11.37, 0, 0, 0, 11.35, 7749, 0, 949],
    [20230906, 11.35, 0, 0, 0, 11.35, 5672, 0, 950],
    [20230906, 11.35, 0, 0, 0, 11.34, 2452, 0, 951],
    [20230906, 11.34, 0, 0, 0, 11.34, 2126, 0, 952],
    [20230906, 11.34, 0, 0, 0, 11.35, 3392, 0, 953],
    [20230906, 11.35, 0, 0, 0, 11.35, 3596, 0, 954],
    [20230906, 11.35, 0, 0, 0, 11.33, 1442, 0, 955],
    [20230906, 11.33, 0, 0, 0, 11.33, 3850, 0, 956],
    [20230906, 11.33, 0, 0, 0, 11.34, 1859, 0, 957],
    [20230906, 11.34, 0, 0, 0, 11.34, 1160, 0, 958],
    [20230906, 11.34, 0, 0, 0, 11.34, 3637, 0, 959],
    [20230906, 11.34, 0, 0, 0, 11.33, 4248, 0, 1000],
    [20230906, 11.33, 0, 0, 0, 11.34, 905, 0, 1001],
    [20230906, 11.34, 0, 0, 0, 11.34, 2340, 0, 1002],
    [20230906, 11.34, 0, 0, 0, 11.33, 2218, 0, 1003],
    [20230906, 11.33, 0, 0, 0, 11.34, 909, 0, 1004],
    [20230906, 11.34, 0, 0, 0, 11.31, 15044, 0, 1005],
    [20230906, 11.31, 0, 0, 0, 11.3, 16609, 0, 1006],
    [20230906, 11.3, 0, 0, 0, 11.33, 12277, 0, 1007],
    [20230906, 11.33, 0, 0, 0, 11.31, 2546, 0, 1008],
    [20230906, 11.31, 0, 0, 0, 11.32, 585, 0, 1009],
    [20230906, 11.32, 0, 0, 0, 11.32, 4967, 0, 1010],
    [20230906, 11.32, 0, 0, 0, 11.33, 816, 0, 1011],
    [20230906, 11.33, 0, 0, 0, 11.31, 3263, 0, 1012],
    [20230906, 11.31, 0, 0, 0, 11.32, 3312, 0, 1013],
    [20230906, 11.32, 0, 0, 0, 11.32, 671, 0, 1014],
    [20230906, 11.32, 0, 0, 0, 11.32, 1909, 0, 1015],
    [20230906, 11.32, 0, 0, 0, 11.31, 6635, 0, 1016],
    [20230906, 11.31, 0, 0, 0, 11.32, 1136, 0, 1017],
    [20230906, 11.32, 0, 0, 0, 11.32, 1838, 0, 1018],
    [20230906, 11.32, 0, 0, 0, 11.33, 2122, 0, 1019],
    [20230906, 11.33, 0, 0, 0, 11.32, 933, 0, 1020],
    [20230906, 11.32, 0, 0, 0, 11.33, 1851, 0, 1021],
    [20230906, 11.33, 0, 0, 0, 11.32, 680, 0, 1022],
    [20230906, 11.32, 0, 0, 0, 11.34, 2234, 0, 1023],
    [20230906, 11.34, 0, 0, 0, 11.34, 2161, 0, 1024],
    [20230906, 11.34, 0, 0, 0, 11.33, 1003, 0, 1025],
    [20230906, 11.33, 0, 0, 0, 11.34, 718, 0, 1026],
    [20230906, 11.34, 0, 0, 0, 11.34, 1602, 0, 1027],
    [20230906, 11.34, 0, 0, 0, 11.33, 1171, 0, 1028],
    [20230906, 11.33, 0, 0, 0, 11.33, 2629, 0, 1029],
    [20230906, 11.33, 0, 0, 0, 11.33, 1920, 0, 1030],
    [20230906, 11.33, 0, 0, 0, 11.33, 1506, 0, 1031],
    [20230906, 11.33, 0, 0, 0, 11.33, 859, 0, 1032],
    [20230906, 11.33, 0, 0, 0, 11.33, 286, 0, 1033],
    [20230906, 11.33, 0, 0, 0, 11.32, 999, 0, 1034],
    [20230906, 11.32, 0, 0, 0, 11.33, 1491, 0, 1035],
    [20230906, 11.33, 0, 0, 0, 11.33, 1056, 0, 1036],
    [20230906, 11.33, 0, 0, 0, 11.33, 2614, 0, 1037],
    [20230906, 11.33, 0, 0, 0, 11.32, 558, 0, 1038],
    [20230906, 11.32, 0, 0, 0, 11.33, 591, 0, 1039],
    [20230906, 11.33, 0, 0, 0, 11.33, 2270, 0, 1040],
    [20230906, 11.33, 0, 0, 0, 11.33, 3269, 0, 1041],
    [20230906, 11.33, 0, 0, 0, 11.34, 736, 0, 1042],
    [20230906, 11.34, 0, 0, 0, 11.33, 1070, 0, 1043],
    [20230906, 11.33, 0, 0, 0, 11.32, 1267, 0, 1044],
    [20230906, 11.32, 0, 0, 0, 11.34, 669, 0, 1045],
    [20230906, 11.34, 0, 0, 0, 11.34, 436, 0, 1046],
    [20230906, 11.34, 0, 0, 0, 11.34, 2639, 0, 1047],
    [20230906, 11.34, 0, 0, 0, 11.34, 1679, 0, 1048],
    [20230906, 11.34, 0, 0, 0, 11.33, 424, 0, 1049],
    [20230906, 11.33, 0, 0, 0, 11.33, 4684, 0, 1050],
    [20230906, 11.33, 0, 0, 0, 11.33, 400, 0, 1051],
    [20230906, 11.33, 0, 0, 0, 11.33, 480, 0, 1052],
    [20230906, 11.33, 0, 0, 0, 11.33, 434, 0, 1053],
    [20230906, 11.33, 0, 0, 0, 11.33, 834, 0, 1054],
    [20230906, 11.33, 0, 0, 0, 11.33, 404, 0, 1055],
    [20230906, 11.33, 0, 0, 0, 11.32, 689, 0, 1056],
    [20230906, 11.32, 0, 0, 0, 11.33, 706, 0, 1057],
    [20230906, 11.33, 0, 0, 0, 11.32, 794, 0, 1058],
    [20230906, 11.32, 0, 0, 0, 11.33, 1334, 0, 1059],
    [20230906, 11.33, 0, 0, 0, 11.32, 602, 0, 1100],
    [20230906, 11.32, 0, 0, 0, 11.33, 1386, 0, 1101],
    [20230906, 11.33, 0, 0, 0, 11.32, 6959, 0, 1102],
    [20230906, 11.32, 0, 0, 0, 11.32, 1638, 0, 1103],
    [20230906, 11.32, 0, 0, 0, 11.31, 927, 0, 1104],
    [20230906, 11.31, 0, 0, 0, 11.32, 752, 0, 1105],
    [20230906, 11.32, 0, 0, 0, 11.32, 818, 0, 1106],
    [20230906, 11.32, 0, 0, 0, 11.31, 1130, 0, 1107],
    [20230906, 11.31, 0, 0, 0, 11.31, 11372, 0, 1108],
    [20230906, 11.31, 0, 0, 0, 11.31, 3743, 0, 1109],
    [20230906, 11.31, 0, 0, 0, 11.31, 2221, 0, 1110],
    [20230906, 11.31, 0, 0, 0, 11.3, 1548, 0, 1111],
    [20230906, 11.3, 0, 0, 0, 11.3, 3139, 0, 1112],
    [20230906, 11.3, 0, 0, 0, 11.3, 1546, 0, 1113],
    [20230906, 11.3, 0, 0, 0, 11.31, 1480, 0, 1114],
    [20230906, 11.31, 0, 0, 0, 11.31, 218, 0, 1115],
    [20230906, 11.31, 0, 0, 0, 11.32, 752, 0, 1116],
    [20230906, 11.32, 0, 0, 0, 11.31, 529, 0, 1117],
    [20230906, 11.31, 0, 0, 0, 11.31, 2784, 0, 1118],
    [20230906, 11.31, 0, 0, 0, 11.31, 576, 0, 1119],
    [20230906, 11.31, 0, 0, 0, 11.32, 1141, 0, 1120],
    [20230906, 11.32, 0, 0, 0, 11.32, 734, 0, 1121],
    [20230906, 11.32, 0, 0, 0, 11.32, 698, 0, 1122],
    [20230906, 11.32, 0, 0, 0, 11.31, 842, 0, 1123],
    [20230906, 11.31, 0, 0, 0, 11.31, 1022, 0, 1124],
    [20230906, 11.31, 0, 0, 0, 11.33, 3877, 0, 1125],
    [20230906, 11.33, 0, 0, 0, 11.33, 821, 0, 1126],
    [20230906, 11.33, 0, 0, 0, 11.32, 1009, 0, 1127],
    [20230906, 11.32, 0, 0, 0, 11.32, 1408, 0, 1128],
    [20230906, 11.32, 0, 0, 0, 11.33, 1443, 0, 1129],
    [20230906, 11.33, 0, 0, 0, 11.34, 6001, 0, 1300],
    [20230906, 11.34, 0, 0, 0, 11.35, 1679, 0, 1301],
    [20230906, 11.35, 0, 0, 0, 11.36, 2073, 0, 1302],
    [20230906, 11.36, 0, 0, 0, 11.37, 6406, 0, 1303],
    [20230906, 11.37, 0, 0, 0, 11.36, 1686, 0, 1304],
    [20230906, 11.36, 0, 0, 0, 11.35, 1420, 0, 1305],
    [20230906, 11.35, 0, 0, 0, 11.35, 506, 0, 1306],
    [20230906, 11.35, 0, 0, 0, 11.35, 429, 0, 1307],
    [20230906, 11.35, 0, 0, 0, 11.35, 1459, 0, 1308],
    [20230906, 11.35, 0, 0, 0, 11.34, 1665, 0, 1309],
    [20230906, 11.34, 0, 0, 0, 11.36, 2804, 0, 1310],
    [20230906, 11.36, 0, 0, 0, 11.35, 908, 0, 1311],
    [20230906, 11.35, 0, 0, 0, 11.34, 146, 0, 1312],
    [20230906, 11.34, 0, 0, 0, 11.35, 1428, 0, 1313],
    [20230906, 11.35, 0, 0, 0, 11.35, 1070, 0, 1314],
    [20230906, 11.35, 0, 0, 0, 11.36, 942, 0, 1315],
    [20230906, 11.36, 0, 0, 0, 11.35, 1038, 0, 1316],
    [20230906, 11.35, 0, 0, 0, 11.35, 683, 0, 1317],
    [20230906, 11.35, 0, 0, 0, 11.35, 1132, 0, 1318],
    [20230906, 11.35, 0, 0, 0, 11.36, 2261, 0, 1319],
    [20230906, 11.36, 0, 0, 0, 11.36, 612, 0, 1320],
    [20230906, 11.36, 0, 0, 0, 11.36, 2116, 0, 1321],
    [20230906, 11.36, 0, 0, 0, 11.35, 622, 0, 1322],
    [20230906, 11.35, 0, 0, 0, 11.35, 4308, 0, 1323],
    [20230906, 11.35, 0, 0, 0, 11.36, 1568, 0, 1324],
    [20230906, 11.36, 0, 0, 0, 11.36, 1082, 0, 1325],
    [20230906, 11.36, 0, 0, 0, 11.36, 1081, 0, 1326],
    [20230906, 11.36, 0, 0, 0, 11.38, 2639, 0, 1327],
    [20230906, 11.38, 0, 0, 0, 11.37, 1241, 0, 1328],
    [20230906, 11.37, 0, 0, 0, 11.38, 2061, 0, 1329],
    [20230906, 11.38, 0, 0, 0, 11.37, 2087, 0, 1330],
    [20230906, 11.37, 0, 0, 0, 11.37, 2503, 0, 1331],
    [20230906, 11.37, 0, 0, 0, 11.38, 1588, 0, 1332],
    [20230906, 11.38, 0, 0, 0, 11.4, 6890, 0, 1333],
    [20230906, 11.4, 0, 0, 0, 11.41, 3194, 0, 1334],
    [20230906, 11.41, 0, 0, 0, 11.41, 3170, 0, 1335],
    [20230906, 11.41, 0, 0, 0, 11.42, 6873, 0, 1336],
    [20230906, 11.42, 0, 0, 0, 11.42, 10514, 0, 1337],
    [20230906, 11.42, 0, 0, 0, 11.41, 1920, 0, 1338],
    [20230906, 11.41, 0, 0, 0, 11.43, 3911, 0, 1339],
    [20230906, 11.43, 0, 0, 0, 11.42, 2990, 0, 1340],
    [20230906, 11.42, 0, 0, 0, 11.43, 3000, 0, 1341],
    [20230906, 11.43, 0, 0, 0, 11.42, 2097, 0, 1342],
    [20230906, 11.42, 0, 0, 0, 11.42, 2105, 0, 1343],
    [20230906, 11.42, 0, 0, 0, 11.42, 5385, 0, 1344],
    [20230906, 11.42, 0, 0, 0, 11.42, 3680, 0, 1345],
    [20230906, 11.42, 0, 0, 0, 11.41, 6477, 0, 1346],
    [20230906, 11.41, 0, 0, 0, 11.41, 4643, 0, 1347],
    [20230906, 11.41, 0, 0, 0, 11.41, 2471, 0, 1348],
    [20230906, 11.41, 0, 0, 0, 11.42, 1812, 0, 1349],
    [20230906, 11.42, 0, 0, 0, 11.41, 1713, 0, 1350],
    [20230906, 11.41, 0, 0, 0, 11.42, 4171, 0, 1351],
    [20230906, 11.42, 0, 0, 0, 11.42, 3144, 0, 1352],
    [20230906, 11.42, 0, 0, 0, 11.42, 1894, 0, 1353],
    [20230906, 11.42, 0, 0, 0, 11.43, 1747, 0, 1354],
    [20230906, 11.43, 0, 0, 0, 11.41, 1483, 0, 1355],
    [20230906, 11.41, 0, 0, 0, 11.41, 579, 0, 1356],
    [20230906, 11.41, 0, 0, 0, 11.41, 715, 0, 1357],
    [20230906, 11.41, 0, 0, 0, 11.41, 1075, 0, 1358],
    [20230906, 11.41, 0, 0, 0, 11.42, 1111, 0, 1359],
    [20230906, 11.42, 0, 0, 0, 11.43, 8634, 0, 1400],
    [20230906, 11.43, 0, 0, 0, 11.43, 1917, 0, 1401],
    [20230906, 11.43, 0, 0, 0, 11.42, 3157, 0, 1402],
    [20230906, 11.42, 0, 0, 0, 11.42, 2583, 0, 1403],
    [20230906, 11.42, 0, 0, 0, 11.43, 1859, 0, 1404],
    [20230906, 11.43, 0, 0, 0, 11.43, 2039, 0, 1405],
    [20230906, 11.43, 0, 0, 0, 11.42, 11054, 0, 1406],
    [20230906, 11.42, 0, 0, 0, 11.42, 4201, 0, 1407],
    [20230906, 11.42, 0, 0, 0, 11.42, 1475, 0, 1408],
    [20230906, 11.42, 0, 0, 0, 11.42, 1509, 0, 1409],
    [20230906, 11.42, 0, 0, 0, 11.42, 726, 0, 1410],
    [20230906, 11.42, 0, 0, 0, 11.41, 2620, 0, 1411],
    [20230906, 11.41, 0, 0, 0, 11.42, 1080, 0, 1412],
    [20230906, 11.42, 0, 0, 0, 11.41, 833, 0, 1413],
    [20230906, 11.41, 0, 0, 0, 11.42, 1050, 0, 1414],
    [20230906, 11.42, 0, 0, 0, 11.41, 799, 0, 1415],
    [20230906, 11.41, 0, 0, 0, 11.43, 2378, 0, 1416],
    [20230906, 11.43, 0, 0, 0, 11.43, 1826, 0, 1417],
    [20230906, 11.43, 0, 0, 0, 11.42, 1907, 0, 1418],
    [20230906, 11.42, 0, 0, 0, 11.42, 1730, 0, 1419],
    [20230906, 11.42, 0, 0, 0, 11.42, 1440, 0, 1420],
    [20230906, 11.42, 0, 0, 0, 11.43, 10523, 0, 1421],
    [20230906, 11.43, 0, 0, 0, 11.44, 1510, 0, 1422],
    [20230906, 11.44, 0, 0, 0, 11.43, 1587, 0, 1423],
    [20230906, 11.43, 0, 0, 0, 11.43, 2112, 0, 1424],
    [20230906, 11.43, 0, 0, 0, 11.43, 1884, 0, 1425],
    [20230906, 11.43, 0, 0, 0, 11.44, 2276, 0, 1426],
    [20230906, 11.44, 0, 0, 0, 11.43, 2761, 0, 1427],
    [20230906, 11.43, 0, 0, 0, 11.45, 7014, 0, 1428],
    [20230906, 11.45, 0, 0, 0, 11.45, 9946, 0, 1429],
    [20230906, 11.45, 0, 0, 0, 11.45, 4927, 0, 1430],
    [20230906, 11.45, 0, 0, 0, 11.45, 850, 0, 1431],
    [20230906, 11.45, 0, 0, 0, 11.46, 3941, 0, 1432],
    [20230906, 11.46, 0, 0, 0, 11.45, 3277, 0, 1433],
    [20230906, 11.45, 0, 0, 0, 11.44, 580, 0, 1434],
    [20230906, 11.44, 0, 0, 0, 11.45, 2042, 0, 1435],
    [20230906, 11.45, 0, 0, 0, 11.44, 6923, 0, 1436],
    [20230906, 11.44, 0, 0, 0, 11.44, 1633, 0, 1437],
    [20230906, 11.44, 0, 0, 0, 11.44, 938, 0, 1438],
    [20230906, 11.44, 0, 0, 0, 11.44, 976, 0, 1439],
    [20230906, 11.44, 0, 0, 0, 11.43, 4613, 0, 1440],
    [20230906, 11.43, 0, 0, 0, 11.43, 862, 0, 1441],
    [20230906, 11.43, 0, 0, 0, 11.42, 577, 0, 1442],
    [20230906, 11.42, 0, 0, 0, 11.42, 933, 0, 1443],
    [20230906, 11.42, 0, 0, 0, 11.42, 1036, 0, 1444],
    [20230906, 11.42, 0, 0, 0, 11.44, 6553, 0, 1445],
    [20230906, 11.44, 0, 0, 0, 11.42, 2845, 0, 1446],
    [20230906, 11.42, 0, 0, 0, 11.43, 468, 0, 1447],
    [20230906, 11.43, 0, 0, 0, 11.42, 2492, 0, 1448],
    [20230906, 11.42, 0, 0, 0, 11.42, 1104, 0, 1449],
    [20230906, 11.42, 0, 0, 0, 11.42, 874, 0, 1450],
    [20230906, 11.42, 0, 0, 0, 11.42, 1200, 0, 1451],
    [20230906, 11.42, 0, 0, 0, 11.42, 1174, 0, 1452],
    [20230906, 11.42, 0, 0, 0, 11.43, 2892, 0, 1453],
    [20230906, 11.43, 0, 0, 0, 11.42, 4094, 0, 1454],
    [20230906, 11.42, 0, 0, 0, 11.42, 2836, 0, 1455],
    [20230906, 11.42, 0, 0, 0, 11.43, 5712, 0, 1456],
    [20230906, 11.43, 0, 0, 0, 11.43, 24, 0, 1457],
    [20230906, 11.43, 0, 0, 0, 11.43, 0, 0, 1458],
    [20230906, 11.43, 0, 0, 0, 11.43, 6533, 0, 1459]
  ];

  static final List<double> _a1 = [
    11.388675833929625,
    11.386302604328582,
    11.385057983591887,
    11.380180330041474,
    11.382257696776962,
    11.377567801160042,
    11.380260590548358,
    11.380109467097457,
    11.382223921199241,
    11.377710204476037,
    11.380258184596114,
    11.37623904789318,
    11.373524026937103,
    11.370098964686127,
    11.365305820811685,
    11.364794004536398,
    11.365986618825298,
    11.364228463785103,
    11.361224321932754,
    11.364237704996738,
    11.365016920315808,
    11.364161508782066,
    11.359169609150973,
    11.356798137187909,
    11.359968380608787,
    11.359022326847326,
    11.359431250518508,
    11.363085425887787,
    11.363303539615048,
    11.363928089088153,
    11.367780224581873,
    11.366864706458543,
    11.371126962824315,
    11.372680309878533,
    11.376510977422402,
    11.379481394052576,
    11.377322358750035,
    11.374681676633255,
    11.373746931621673,
    11.373771010468076,
    11.376385699035438,
    11.3728532875844,
    11.371664800361076,
    11.37456291008729,
    11.37060777978644,
    11.369274412466801,
    11.368047485142887,
    11.370949060940346,
    11.370287407567634,
    11.366499887233436,
    11.367170360567645,
    11.36454209268744,
    11.361872434007543,
    11.362079435377709,
    11.359689293876192,
    11.360572012065566,
    11.364362323987905,
    11.361467536526135,
    11.364489873777258,
    11.365926081401538,
    11.367100495031693,
    11.366219710582504,
    11.36360116918814,
    11.363007633283424,
    11.359663316688396,
    11.36093027151583,
    11.363043538438049,
    11.363882202194771,
    11.366629880794232,
    11.362824655533425,
    11.365643899464516,
    11.365812496224882,
    11.36744493918082,
    11.372145601877895,
    11.3703616157645,
    11.366040519921258,
    11.37025218074087,
    11.375190555584924,
    11.374711368656275,
    11.373254458677392,
    11.376676729164636,
    11.376318983985028,
    11.378223845814446,
    11.375797903638917,
    11.371534017997135,
    11.373035748924886,
    11.372215636770045,
    11.371308866030644,
    11.368176557732527,
    11.3688711989899,
    11.373462481428339,
    11.376394474436335,
    11.377233039329683,
    11.372428440844917,
    11.372364288289356,
    11.372860303139747,
    11.369803920727568,
    11.374345281936657,
    11.372674647985122,
    11.37505767192293,
    11.378032667840984,
    11.381453718096688,
    11.381897807364208,
    11.38448376975588,
    11.383679932045816,
    11.379916324523379,
    11.378286291107566,
    11.3825695492335,
    11.37997049355978,
    11.375940308708413,
    11.372066625979118,
    11.375867182581404,
    11.380586497540198,
    11.384784167558436,
    11.389176049692649,
    11.384948402091638,
    11.383865062780222,
    11.380619946961298,
    11.377031974329341,
    11.380462582414673,
    11.376133080043804,
    11.375694138195511,
    11.379166758970113,
    11.375305610081574,
    11.370978851062151,
    11.37570140831496,
    11.378440277327286,
    11.37660670810722,
    11.3762120562133,
    11.375368531899788,
    11.376661020001462,
    11.376000954495506,
    11.371593045267629,
    11.36966683274629,
    11.367180262678227,
    11.371061704308051,
    11.369399602982845,
    11.368344714042058,
    11.368285451274954,
    11.36434143333345,
    11.364239507557171,
    11.36023795262189,
    11.36266214208173,
    11.365313053133276,
    11.369888057544742,
    11.370170674980914,
    11.3720157737007,
    11.372911410289454,
    11.370109581215878,
    11.372190837368718,
    11.371406453454126,
    11.36889794080043,
    11.370481751449052,
    11.374063209776102,
    11.377582984070873,
    11.380823027357424,
    11.383036651401387,
    11.387037830614464,
    11.389575744575675,
    11.390087496836767,
    11.389321643897608,
    11.388020039391526,
    11.385769501318457,
    11.387569010716025,
    11.386658023970362,
    11.385688986782563,
    11.389142209695121,
    11.385026653958304,
    11.384550635504269,
    11.384666001244804,
    11.38728400870485,
    11.38877832294567,
    11.388805867460702,
    11.385105667095948,
    11.383012316285763,
    11.381044463674069,
    11.378925260954079,
    11.374227174252749,
    11.375116603944166,
    11.371757783440426,
    11.367079367955398,
    11.362598854536667,
    11.365225507612974,
    11.361659693308779,
    11.364088183088448,
    11.36371108592126,
    11.366654893978957,
    11.37037472188963,
    11.366966651890516,
    11.366457280890415,
    11.365258124791788,
    11.367288003432648,
    11.362811659312282,
    11.359490715764128,
    11.360780794089061,
    11.35947780295594,
    11.360897997419038,
    11.357262937521304,
    11.354711990988866,
    11.351593006053434,
    11.349698098859692,
    11.352628227420936,
    11.348979862781489,
    11.353050390731019,
    11.348226415921397,
    11.348941865332426,
    11.351673576945853,
    11.355400181639656,
    11.351780379874187,
    11.351909965991892,
    11.347941646875844,
    11.35218029606038,
    11.350010981700196,
    11.34770705964009,
    11.348607196548913,
    11.349964737840075,
    11.34802792279194,
    11.3520501729025,
    11.34923737099219,
    11.351086340306752,
    11.355694344159568,
    11.355750842362403,
    11.35175374915542,
    11.35402567449476,
    11.352005768922947,
    11.352316970293883,
    11.3571465654491,
    11.352891958628119,
    11.348282802338735,
    11.344885349903116,
    11.345616109269557,
    11.341151312220797,
    11.345168308572614,
    11.348579798630851,
    11.343673604089377,
    11.347307329143387,
    11.345993462920312,
    11.348208385845156,
    11.351704295152532,
    11.349096643119942
  ];

  static LineChartVo get lineData {
    var dataList = _lineData
        .map((e) => LineChartData(
            value: e[5], dateTime: KlineDateUtil.parseIntTime(e.last.toInt())))
        .toList();
    LineChartVo result = LineChartVo(data: dataList);
    result.maxValue = 11.48;
    result.minValue = 11.30;
    return result;
  }

  static LineChartVo get lineData2 {
    var dataList = _lineData2
        .map((e) => LineChartData(
            value: e[5], dateTime: KlineDateUtil.parseIntTime(e.last.toInt())))
        .toList();
    LineChartVo result = LineChartVo(data: dataList);
    result.maxValue = 11.48;
    result.minValue = 11.30;
    return result;
  }

  static List<BaseChartVo> subData() {
    List<BaseChartVo> result = [];

    for (int i = 0; i < 1; ++i) {
      result.add(
        LineChartVo(
          name: 'A1',
          data: _a1.map((e) => LineChartData(value: e)).toList(),
          color: KlineConfig.kLineColors[i + 1],
          gradient: GradientChartConstants.formGradient(
              color: KlineConfig.kLineColors[i + 1]),
        ),
      );
    }
    return result;
  }

  static List<BaseChartVo> subDataMinute() {
    List<BaseChartVo> result = [];

    for (int i = 0; i < 1; ++i) {
      result.add(
        LineChartVo(
          name: 'A1',
          data: _a1.map((e) => LineChartData(value: e)).toList()..length = 240,
          color: KlineConfig.kLineColors[i + 1],
          gradient: GradientChartConstants.formGradient(
              color: KlineConfig.kLineColors[i + 1]),
        ),
      );
    }
    return result;
  }

  static List<BaseChartVo> generateLineData(
      {int generateNum = 240,
      double maxValue = 11.48,
      double minValue = 11.3}) {
    List<double> genDataList = [];
    List<BaseChartVo> result = [];
    double lastValue = minValue + (maxValue - minValue) / 2;
    for (int i = 0; i < 1; ++i) {
      result.add(LineChartVo(
          name: 'A1',
          data: List.generate(generateNum, (index) {
            var generateValue = KlineRandomUtil.generateDoubleInRange(
              max: maxValue,
              min: minValue,
              floatRange: 0.01,
              previousValue: lastValue,
            );

            lastValue = generateValue;
            genDataList.add(generateValue);
            return LineChartData(value: generateValue);
          }),
          color: KlineConfig.kLineColors[i + 1]));
    }
    return result;
  }
}
